from django.db import models


# Create your models here.
# 用户表
class User(models.Model):
    # 用户名,models.CharField字符串类型
    username = models.CharField(max_length=255)
    # 密码,models.CharField字符串类型
    password = models.CharField(max_length=255)
    # 联系电话,models.CharField字符串类型
    tel = models.CharField(max_length=255,default='0')
    # 配送地址,models.CharField字符串类型
    address = models.CharField(max_length=10000,default='0')

    def __str__(self):
        return "%s" % self.username

